import { Component, OnInit, ViewChild } from '@angular/core';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.less']
})
export class HomeComponent implements OnInit {

  constructor() { }

  public title:string="home组件的title";

  @ViewChild('footer') foot:any;

  ngOnInit(): void {
  }

  run():void{
    console.log("home组件的run方法执行了");
  }

  runFooter():void{
    this.foot.run();
  }

  runOuter(e):void{
    console.log(e);
    console.log("home组件的outer方法执行了");
  }

}
